﻿using System;

class PrintSomeNumbers
{
    static void Main()
    {
        int numberN;

        Console.WriteLine("Type a number:");
        bool isNumberValid = int.TryParse(Console.ReadLine(), out numberN);

        if (isNumberValid)
        {
            for (int i = 1; i <= numberN; i++)
            {
                if (i%3!=0 && i!=0)
                {
                    Console.WriteLine(i);                   
                }
            }
        }
        else
        {
            Console.WriteLine("Your input isn`t OK!!!");
        }
    }
}
